package net.zjitc.mapper;

import net.zjitc.po.User;
import net.zjitc.po.UserVo;

import java.util.List;

/**
 * Created by Administrator on 2017/12/20.
 */
public interface UserMapper {
    /**
     * 方法名：与xml中的sql语句的id一致
     * 参数：与parameterType一致
     * 返回值:resultType一致
     * @param id
     * @return
     */
    public User findUserById(int id);
    /*定义并测试所有的方法*/
    public List<User> findUserByUsername(String username);
    List<User> findUserByUserVo(UserVo vo);
    List<User> findUserByTypeAlise();
    List<User>  findUserBySexAndUsername(User user);
    int findUserCountByCondition(User user);
}
